package org.ramoths.netcom.sessions.verrous;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

public class VrDonneesOutputStream extends ReentrantLock
{
	private static final long serialVersionUID = 7092129161031881057L;
	private final Condition conditionTauxMinimumAtteint;
	private final Condition conditionPlaceDisponible;
	
	public VrDonneesOutputStream()
	{
		this.conditionTauxMinimumAtteint = super.newCondition();
		this.conditionPlaceDisponible = super.newCondition();
	}
	
	public Condition getConditionTauxMinimumAtteint()
	{
		return conditionTauxMinimumAtteint;
	}
	
	public Condition getConditionPlaceDisponible()
	{
		return conditionPlaceDisponible;
	}
}
